package com.cuckoo.mall.thus.menucart;

import android.content.Context;

import com.bgn.baseframe.base.BasePresenter;
import com.bgn.baseframe.base.BaseView;
import com.cuckoo.mall.javabean.CartItems;
import com.cuckoo.mall.javabean.CartProductItem;

import java.util.List;


/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class MenucartContract {
    interface View extends BaseView {
        void whenGetCartDatas(List<CartProductItem> datas, int type);

        void whenCartNoData();

        void whenUpdateNumFaild(int position, int oldNum);

        void whenUpdateSucceed(int position, int newNum);

        void whenDeleteSucceed(List<Integer> positions);
    }

    interface Presenter extends BasePresenter<View> {
        void refreshList();

        void loadCartList();

        void updateCartItemsNum(int position, int oldNum, int cart_num, String cart_id);

        void deleteCartItem(List<Integer> positions, String cart_ids);

    }
}
